import java.awt.Rectangle;

public class RectangleTester {
	public static void main(String[] args) {
		
		// Create two rectangle objects
		Rectangle rectangle1 = new Rectangle(15, 25, 52, 15);
		Rectangle rectangle2 = new Rectangle(0, 12, 62, 43);
		
		// Store each rectangle object's info in a string
		String rectangle1Info = rectangle1.toString();
		String rectangle2Info = rectangle2.toString();
		
		// Calculate the area of each rectangle and store in a variable
		double rectangle1Area = rectangle1.getWidth() * rectangle1.getHeight();
		double rectangle2Area = rectangle2.getWidth() * rectangle2.getHeight();
		
		// Calculate the perimeter of each rectangle and store in a variable
		double rectangle1Perimeter = (rectangle1.getWidth() * 2) + (rectangle1.getHeight() * 2);
		double rectangle2Perimeter = (rectangle2.getWidth() * 2) + (rectangle2.getHeight() * 2);
		
		// Output the properties, area, and perimeter of rectangle #1
		System.out.println(rectangle1Info);
		System.out.print("Area = ");
		System.out.println(rectangle1Area);
		System.out.print("Perimeter = ");
		System.out.println(rectangle1Perimeter);
		System.out.println("");
		
		// Output the properties, area, and perimeter of rectangle #2
		System.out.println(rectangle2Info);
		System.out.print("Area = ");
		System.out.println(rectangle2Area);
		System.out.print("Perimeter = ");
		System.out.println(rectangle2Perimeter);
		System.out.println("");
		
		System.out.println("End of output!");
		
	}
}

